package com.aruba.socketlibrary.config;

/**
 * Created by aruba on 2018/1/17.
 */

public class SerialportConfig {
    public static final String data_empty = "Data is empty";
    public static final String data_bad = "Data is bad";
    public static final String data_length_err = "Data length is err";
    public static final String data_val_err = "Data val is not same";
    //头+长度+设备类型+厂商标识 +命令字+校验位+结束位 
    public static final int no_use_length = 11;

    public static final int send_success = 0;
    public static final int send_fail = 1;
    public static final int send_timeout = 2;

    public static final String commandId_key = "commandId";
    public static final String data = "data";

    //0：成功/确认；1：失败；2：消息有误 
    public static final int reply_success = 0;
    public static final int reply_fail = 1;
    public static final int reply_err = 2;

    public static final String string_encode = "gb2312";

    public static final double lonlan_format = 600000.0;

    public static final String device_name = "/dev/mcu2ttyS0";
    public static final int device_baudRate = 57600;

    //心跳时间
    public static final int heart_time = 10000;
}
